﻿#include <stdio.h>

//main21：案例：用户输入1-7就输出星期几
int main21(void)
{
	printf("1.请输入1~7的数字，按回车键结束：\n");
	int num;
	scanf("%d", &num);//3
	switch (num)
	{
	case 1:
		printf("2.Monday！\n");
		break;
	case 2:
		printf("3.Tuesday！\n");
		break;
	case 3:
		printf("4.Wednesday！\n");//4.Wednesday！
		break;
	case 4:
		printf("5.Thursday！\n");
		break;
	case 5:
		printf("6.Friday！\n");
		break;
	case 6:
		printf("7.Saturday！\n");
		break;
	case 7:
		printf("8.Sunday！\n");
		break;
	default:
		printf("9.输入有误！\n");
		break;
	}
	return 0;
}